package App;

import Controls.Button;
import Core.Control;
import Core.Form;
import Core.GM;

public class TestForm2 extends Form
{
	public TestForm2()
	{
		super(Form.HEAD | Form.THIN_PANEL);

		setWindowText(GM.FORM_CAPTION, "Form2");

		body.h_border = 3;

		for(int i = 0; i<15; i++) body.setHotControl(body.addControl(new Button(""+i, body)), i);
		
		body.select(Control.THIS);

		setWindowText(GM.PANEL_RIGHTSOFT, "Close");

		body.scrollEnable = true;


	}

	public void onEvent(int event, Object param)
	{
		super.onEvent(event, param);
		
		if(event == GM.PANEL_RIGHTSOFT) close();
	}
}
